package custom;

import java.util.HashMap;

import org.bukkit.entity.Player;

import skills.Skill;

import economy.Money;
import factions.Faction;

public class QPlayer {
	private static HashMap<Player, QPlayer> players = new HashMap<Player, QPlayer>();
	private final Player player;
	private Money money;
	private Faction faction;
	private HashMap<String, Skill> skills = new HashMap<String, Skill>();
	
	public QPlayer(Player player) {
		this.player = player;
		players.put(player, this);
	}
	
	public void setMoney(int amount) {
		this.money = new Money(player, amount);
	}
	
	public void setSkill(String skill, int level, int exp) {
		skill = skill.toLowerCase();
		skills.put(skill, new Skill(player, level, exp));
	}
	
	public static QPlayer getQPlayer(Player player) {
		return players.get(player);
	}

}
